package com.neusoft.controller.check;

import com.neusoft.service.MedicalTechnologyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

@RestController
@CrossOrigin
@RequestMapping("/medicalTechnology")
public class MedicalTechnologyController {
    @Autowired
    MedicalTechnologyService medicalTechnologyService;
    @GetMapping("/getCheckMedicalTechnology")
    public List<Map<String,Object>> getCheckMedicalTechnology(@RequestParam Integer registerId){
       return medicalTechnologyService.getCheckMedicalTechnology(registerId);
    }
    @GetMapping("/getInspectionMedicalTechnology")
    public List<Map<String,Object>> getInspectionMedicalTechnology(@RequestParam Integer registerId){
        return medicalTechnologyService.getInspectionMedicalTechnology(registerId);
    }
    @GetMapping("/getDisposalMedicalTechnology")
    public List<Map<String,Object>> getDisposalMedicalTechnology(@RequestParam Integer registerId){
        return medicalTechnologyService.getDisposalMedicalTechnology(registerId);
    }
}
